<?php session_start(); if($_SESSION['properlogin'] != 1){ header("Location:error.html"); }?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Information (4/4)</title>
<script type="text/javascript" src="validateInformation.js" ></script>


<?php
require_once 'PIView.php';
if(isset($_POST['Done']))
{
	$gnme=$_POST['guardianName'];
	$gadd=$_POST['guardianAddress'];
	$gnum=$_POST['guardianMobile'];
	$sn=$_SESSION['snum'];
	$_SESSION['gnme']=$gnme;
	$_SESSION['gadd']=$gadd;
	$_SESSION['gnum']=$gnum;
	/*PIView::insertResident($_SESSION['snum'],$_SESSION['fnme'],$_SESSION['lnme'],$_SESSION['mnme'],$_SESSION['bday'],$_SESSION['gendr'],$_SESSION['cstatus'],$_SESSION['lschool'],$_SESSION['lschtype'],$_SESSION['religion'],$_SESSION['class'],$_SESSION['stfap'],$_SESSION['schol'],$_SESSION['stipe'],$_SESSION['cp'],$_SESSION['email'],$_SESSION['hobbies'],$_SESSION['honors'],$_SESSION['talents'],$_SESSION['ailments'],$_SESSION['meds'],$_SESSION['addres'],$_SESSION['fnme'],$_SESSION['fjob'],$_SESSION['faddress'],$_SESSION['fincome'],$_SESSION['flife'],$_SESSION['femployer'],$_SESSION['fcp'],$_SESSION['mnme'],$_SESSION['mjob'],$_SESSION['maddress'],$_SESSION['mincome'],$_SESSION['mlife'],$_SESSION['memployer'],$_SESSION['mcp'],$_SESSION['regn'],$_SESSION['stats'],$_SESSION['numbro'],$_SESSION['numsis'],$_SESSION['order'],$_SESSION['gnme'],$_SESSION['gadd'],$_SESSION['gnum']);*/
	
	header("Location:form5.php");
}
?>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" cellpadding="1">
 
  <tr>
    <td>&nbsp;</td>
    <td class="subBanner"><strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resident's Basic Information Form</strong></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><form id="form1" name="form1" method="post" action="" onsubmit="return validateInformation3(this)">
      <table width="100%" border="0" cellpadding="1">
        <tr>
          <td>&nbsp;</td>
          <td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong>&nbsp;</td>
          <td id="lname2" class="error">&nbsp;</td>
        </tr>
        <tr>
          <td width="37%"><strong>Guardian's Name</strong></td>
          <td width="34%"><strong>
            <input name="guardianName" type="text" id="guardianName" size="40" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;          </strong></td>
          <td width="29%" id="gname" class="error">&nbsp;</td>
        </tr>
        <tr>
          <td>Address</td>
          <td><strong>
            <input name="guardianAddress" type="text" id="fatherOccupation" size="40" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;          </strong></td>
          <td id="gaddress" class="error">&nbsp;</td>
        </tr>
        <tr>
          <td>Contact Number</td>
          <td><strong>
            <input name="guardianMobile" type="text" id="fatherIncome" size="40" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            </strong></td>
          <td id="gcp" class="error">&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input type="submit" name="Done" id="Done" value="Done" /></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </form></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
